package com.liang.design;

import org.itstack.demo.design.MinibusTargetService;

import java.util.Date;

/**
 * @author lsm
 * @ClassName LotteryServiceImpl.java
 * @Description TODO
 * @createTime 2023年12月05日 20:24:00
 */
public class LotteryServiceImpl extends LotteryService{
    private MinibusTargetService minibusTargetService = new MinibusTargetService();
    @Override
    protected LotteryResult doDraw(String uId) {
        // 摇号
        String lottery = minibusTargetService.lottery(uId);
        // 结果
        return new LotteryResult(uId, lottery, new Date());
    }
}
